package HomeWork.Extends_01;

public class Test {
    public static void main(String[] args) {
        BaseTeacher baseTeacher = new BaseTeacher("张三", 23);
        WorkTeacher workTeacher = new WorkTeacher("李四",24);
        System.out.println(baseTeacher.toString());
        baseTeacher.teach();
        System.out.println(workTeacher.toString());
        workTeacher.teach();
    }
}
